package com.waniu;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Date;

@ConfigurationProperties(prefix = "person")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PersonProperties {
    private String username = "defaultName";
    private int age;
    private Date birth;
}
